package com.suyuan.entity;

import java.io.Serializable;

/**
 * 商品图片表
 */
public class ProPic implements Serializable{

    /**
     * id
     */
    private Integer id;

    /**
     * 商品id
     */
    private Integer productId;

    /**
     * 图片类型，0为滚动图，1为详情图,2为轮播图,3为人们商品大图,4为公司图片(此时productId为公司id来判断)
     */
    private Integer type;

    /**
     * 图片存放链接
     */
    private String url;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public ProPic(){}

    @Override
    public String toString() {
        return "ProPicMapper{" +
                "id=" + id +
                ", productId=" + productId +
                ", type=" + type +
                ", url='" + url + '\'' +
                '}';
    }
}
